/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.lsp.lsp.violation.impl;


/**
 *
 * @author 210227257
 */
public class DriverImpl {
    private String driverName;
    private String driverSurname;
    private int hoursWorked;
    private static final int hourlyrate = 150;

    public DriverImpl(String name, String surname, int hours) {
        this.driverName = name;
        this.driverSurname = surname;
        this.hoursWorked = hours;
    }

    public void setName(String name) {
        this.driverName = name;
    }

    public String getName() {
        return driverName;
    }

    public void setSurname(String surname) {
        this.driverSurname = surname;
    }

    public String getSurname() {
        return driverSurname;
    }

    public void setHoursWorked(int hours) {
        this.hoursWorked = hours;
    }

    public int getHoursWorked() {
        return hoursWorked;
    }
    public double salary(){
        return hoursWorked * hourlyrate;
    }
}
